package stringjob;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class IntegerDemo {
    public static void main(String[] args) {
        String s1="40";
        int age= Integer.parseInt(s1);
        System.out.println(age);

        String s2="123.456";
        double price=Double.parseDouble(s2);
        System.out.println(price);

        int max=Integer.MAX_VALUE;
        int min=Integer.MIN_VALUE;
        System.out.println("int的最大值为："+max+"，最小值为："+min);

        long max1=Long.MAX_VALUE;
        long min1=Long.MIN_VALUE;
        System.out.println("long的最大值为："+max+"，最小值为："+min);

        Integer i1=new Integer(500);
        Integer i2=new Integer(500);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));

        int i=i2.intValue();
        System.out.println(i);

        Integer a=500;
        int b=a;




        String a1="40";
        int  num=Integer.parseInt(a1);
        System.out.println(num);

        String a2="45.456";
        double pr=Double.parseDouble(a2);
        System.out.println(pr);


        Integer o1=new Integer(50);
        Integer o2=new Integer(50);
        System.out.println(o1==o2);
        System.out.println(o1.equals(o2));

        int o=o2.intValue();
        System.out.println(o);

        Integer O=5;
        int P=O;
    }
}
